﻿using System.Collections.ObjectModel;
using TestRunner.App.Entities;

namespace TestRunner.App.Model
{
    public class ModelMock : IModel
    {

        public ObservableCollection<Customer> GetAllCustomers()
        {
            ObservableCollection<Customer> testData = new ObservableCollection<Customer>();

            testData.Add(new Customer()
            {
                ID = 0,
                FirstName = "John",
                LastName = "Malkovic"
            }
                            );

            testData.Add(new Customer()
            {
                ID = 1,
                FirstName = "John",
                LastName = "Deo"
            }
                            );

            testData.Add(new Customer()
            {
                ID = 2,
                FirstName = "George",
                LastName = "Lucas"
            }
                            );

            return testData;
        }

        public Customer GetCustomer(int id)
        {
            Customer testCustomer = new Customer();

            testCustomer.FirstName = "George";
            testCustomer.LastName = "Lucas";
            testCustomer.ID = 0;

            return testCustomer;
        }
    }
}
